first version of a functional rate limiter