updated host name routine