add subsm support in vsfsm