added rate limiting support to client