removal of duplicate method getHost()