removing junk from config