updated rate limiter class