added language field and attribute, currently used for xml