fixed host parsing when host has no IP address