fixing getting of host