added switch commands