change default middlewares