Cleaning of switcher scripts