make retries configurable