reorder the middleware!