update config file and let config file being overwritten in very loop