load prefs and set defaults on initialization