implemented Preferences service