removed getPrefs that returned old map