debugged switch