implement subdomain feature #1, public #2