support for custom middleware routes