properly preserve config files