add the RateManagerMiddleware