check switches