get_pref working