fsm work and break state