updated traffic middlewares