add macros for PT in vsfsm