implemented get/set of documents