store package names into TextRanges instead of plain strings