add a rate-limiter so as to not starve the event loop while processing the input file