max retries and interval