initial fsm creation