copy config files before changing