added the ability to lookup the status of a switch