moved FSM to scripts folder