added flexible routes