cleanup, switchbutton, utility methods