added isRoute isMiddleware