activate and deactivate scripts