fixed fault where commands weren't being sent to switches properly