# Only clone messages sent to 2nd or higher wire on same output

**URL:** <https://discourse.nodered.org/t/only-clone-messages-sent-to-2nd-or-higher-wire-on-same-output/50165>\
**Category:** Feature Requests\
**Created:** [25 August 2021 14:03 UTC](https://discourse.nodered.org/t/only-clone-messages-sent-to-2nd-or-higher-wire-on-same-output/50165 "2021-08-25T14:03:33Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [25 August 2021 19:05 UTC](https://discourse.nodered.org/t/only-clone-messages-sent-to-2nd-or-higher-wire-on-same-output/50165/5 "2021-08-25T19:05:55Z")

</div>

> [@massi-ang](#):
>
> A better option would be to enhance the `clone` function to use the `clone()` method from the object if the object exposes it.

Hi @massi-ang,  
I had a rather similar issue some time ago. When using OpenCv objects (images, matrices, ...), you need to clone those objects via the OpenCv cloning functions.

As you can see in [this](https://discourse.nodered.org/t/live-stream-about-pluggable-message-routing-some-questions/30508/12) old discussion, I have been experimenting with custom cloning. However due to free time constraints, I had to quit this. Keep in mind that it was a quick test, so it might be a bad design!!

It would be nice if cloning could somehow been customized in the future. But I assume this will probably not that easy, because it has to work in a lot of different scenarios. And it should be fast, because this code is being called all over the place.  
Bart

---

_[View the full topic](https://discourse.nodered.org/t/only-clone-messages-sent-to-2nd-or-higher-wire-on-same-output/50165)._
