modified rate_limit check - still needs work