added fsm search