add check for subdomains