adding support for subdomains

adding support for subdomains