fix prefs
wip