added host and subdomain recognition