pub fn read_prefs_map(
    txt: &str
) -> Result<HashMap<String, PrefValue>, PrefError>