move settings file and write config