try to fix some of the annoying bits when hostname hasnt resolved