prepare to implement the HSM framework in vsfsm