need to document the structure of pref (preference entry for either language.fileNames or language.fileExtensions)