add breaks to avoid infinite loops on retries