add my finite state machine