handling api call limit errors