update the config file