diff --git a/include/caosdb/value.h b/include/caosdb/value.h
index 63bb7045bf8f62c31634b75938a122f80c522ed0..e42e526ccd40973f6c10d0e7fe47c08a9f7db2d7 100644
--- a/include/caosdb/value.h
+++ b/include/caosdb/value.h
@@ -23,7 +23,7 @@
 #define CAOSDB_VALUE_H
 #include "caosdb/protobuf_helper.h"         // for ProtoMessageWrapper
 #include "caosdb/entity/v1alpha1/main.pb.h" // for RepeatedPtrField, Message
-
+#include "caosdb/logging.h"
 #include <google/protobuf/util/json_util.h> // for MessageToJson...
 #include <memory>                           // for unique_ptr
 #include <string>                           // for string
@@ -102,9 +102,13 @@ public:
 
 class Value : public ProtoMessageWrapper<ProtoValue> {
 public:
+  explicit inline Value(const Value &value){
+    this->wrapped = value.wrapped;
+  }
   inline Value() : ProtoMessageWrapper<ProtoValue>() {
     // has NULL_VALUE now
   }
+  explicit inline Value(ProtoValue *wrapped) : ProtoMessageWrapper<ProtoValue>(wrapped) {}
   explicit inline Value(const std::string &value)
     : ProtoMessageWrapper<ProtoValue>() {
     this->wrapped->mutable_scalar_value()->set_string_value(value);
@@ -214,6 +218,7 @@ public:
 
   inline auto ToString() const noexcept -> const std::string {
     CAOSDB_DEBUG_MESSAGE_STRING(*wrapped, out)
+    CAOSDB_LOG_DEBUG("caosdb::entity") << "HERE 1 [" << wrapped << "] " << out;
     return out;
   }
 
diff --git a/src/caosdb/entity.cpp b/src/caosdb/entity.cpp
index fc74cb506d095d878e40298785124003cc0f5b55..b000e75887269453c74360308b618a97cafc436e 100644
--- a/src/caosdb/entity.cpp
+++ b/src/caosdb/entity.cpp
@@ -197,14 +197,7 @@ auto Entity::SetVersionId(const std::string &id) -> void {
 }
 
 auto Entity::CopyTo(ProtoEntity *target) -> void {
-  CAOSDB_DEBUG_MESSAGE_STRING(*(this->wrapped), out);
-  CAOSDB_LOG_DEBUG(logger_name) << "COPY ENTITY: " << out;
-  CAOSDB_DEBUG_MESSAGE_STRING(*target, out_2);
-  CAOSDB_LOG_DEBUG(logger_name) << "COPY ENTITY TO: " << out_2;
-  target->Clear();
   target->CopyFrom(*(this->wrapped));
-  CAOSDB_DEBUG_MESSAGE_STRING(*target, out_3);
-  CAOSDB_LOG_DEBUG(logger_name) << "COPY ENTITY FINAL: " << out_3;
 }
 
 auto Entity::SetRole(Role role) -> void {