supporting different (or no) subdomains