fixes getHostname, can't be "None" either