add getSubdomain method