Support pathed middlewares