get_host fix for 1.5 compatability