tweaked rate limiter