added max_retries to defaults