added prep code for switch/trigger