basic switch detection functions
Merge branch 'master' of https://github.com/keenanjohnson/cpe4160