add NameResourceComparator - and refactor package name