add textual/pref conversion functions