prepare to support custom subdomains