modifications for subdomain detection