set up switches