moved one of the middlewares before app.use(app.router)