handle api rate limit from getting folders