add timeout retries to http requests