added prefs api