set max retries