remove all uses of getHostName()
refactor SelectorStrategy generics