adding switch processors
implemented switch processor