load prefs from file