plugged the hook to ratelimit option
added the rate limit framework