another attempt to place pref parsing logic in correct location