added single_switch.py