reorganize hostsToClasses