add automatic retries