middleware declarations are breaking auto-routes at the moment