add switch to script