replace config file