Add gethost utilities