added subdomain parsing