retries and timeout