handles API rate limit error
Merge pull request #136 from melborne/fix-rate-limit

handles API rate limit error