added helper function for saving Gecko prefs