added retries and acquire access token when refresh token dies