max_pages and maxRetries