added the ability to prevent resubmissions for retries