document maxRetries option