rewrite update of config