added ability to retry failed scans automatically