modified to work for scanning
change output to warnings and backup conf