skeleton of the FSM used