Implemanted domain sharing. close #3