XML prefs and patches