add userSwitch support