fix for no timeout. Moved ratelimit out side http call