differentiating host and name as host can contain dots and other possibly nasty characters