update Preferences.txt