make sure the cfg file is clean