create pSwitch for our use