added retries for file downloads