changes to comparison of hostname for currenthost