adding retries option