added beginnings of prefs