[client] better way of setting and accessing prefs
[client] removed unused import