instantiate prefs