update cfg file