moving parsePrefs into Mg