added domain mask support

added domain mask support