add protothread support in vsfsm
add get_stack to interfaces->core