accept that max-retries can be null