added handling for two gauge prefs