added addDomain & removeDomain