modify some helper methods in fsm classes