printhost() bugfix