replace the config file