add stateMachineParser  book method