added switch script