update express middlewares