add support for guessing a host name