handle api throttling in a better way