config file rewrite