added fsm to automation