fixed comments, added global rate limit