modified to use subdomain