added prefs among other things