bug fix, change addDomain to setDomain