added getdomain to helper class