support multi-domain, by using namespace
bug fix