cleaner way of accessing the hostname.