add entire switch script