remove use of extraMiddleware