revision: allow setting custom limiter function