added _domain to documents