back to 3.4.8 but use new middlewares