diff --git a/karabo_devices/shared_mem_processor/src/onlinemid_karabo/processor.py b/karabo_devices/shared_mem_processor/src/onlinemid_karabo/processor.py
index 8373c2a6ce77acf70a5679f18e6670b408647d8e..89d5ff5c1238a7f9dc89d3101280ed5a9c5abbc7 100644
--- a/karabo_devices/shared_mem_processor/src/onlinemid_karabo/processor.py
+++ b/karabo_devices/shared_mem_processor/src/onlinemid_karabo/processor.py
@@ -184,40 +184,7 @@ class OnlineMIDProcessor(TrainMatcher.TrainMatcher):
 #        self.onlineImagePlotter.hash_to_output_channel()
 #'data.current_det_image', AgipdModulePlotter
 
-        if self.schemupdate_test is False and True:
-            print("updating schema")
-            res = Schema()
-            (
-                NODE_ELEMENT(res)
-                .key("data")
-                .displayedName('Data')
-                .commit(),
-
-                IMAGEDATA_ELEMENT(res)
-                .key("data.test_hash")
-                .displayedName('test')
-                .description('test')
-                .commit(),
-
-        #        NODE_ELEMENT(res)
-        #        .key("image")
-        #        .commit(),
-            )
-
-            schema_update = Schema()
-            (
-                OUTPUT_CHANNEL(schema_update)
-                .key("plots")
-                .dataSchema(res)
-                .commit(),
-            )
-
-            self.updateSchema(schema_update)
-            #self.assembled_output = self._ss.getOutputChannel("plots")
-            self.schemupdate_test = True
-            print("updating schema done")
-            
-
+ 
 
 
         
@@ -414,8 +381,46 @@ class OnlineMIDProcessor(TrainMatcher.TrainMatcher):
 
         plot_hash = self.onlineImagePlotter.add_to_hash(plot_hash, 'data.current_det_image', AgipdModulePlotter, train_id, detector_data_list[0][1][0])
         
+        
+        if self.schemupdate_test is False and True:
+            print("updating schema")
+            res = Schema()
+            (
+                NODE_ELEMENT(res)
+                .key("data")
+                .displayedName('Data')
+                .commit(),
+
+                IMAGEDATA_ELEMENT(res)
+                .key("data.test_hash")
+                .displayedName('test')
+                .description('test')
+                .commit(),
+
+        #        NODE_ELEMENT(res)
+        #        .key("image")
+        #        .commit(),
+            )
+
+            schema_update = Schema()
+            (
+                OUTPUT_CHANNEL(schema_update)
+                .key("plots")
+                .dataSchema(res)
+                .commit(),
+            )
+
+            self.updateSchema(schema_update)
+            #self.assembled_output = self._ss.getOutputChannel("plots")
+            self.schemupdate_test = True
+            print("updating schema done")
+            self.assembled_output = self.signalSlotable.getOutputChannel("plots")
+
+
         if numPixelPerGainStage is not None:
             plot_hash = self.onlineImagePlotter.add_to_hash(plot_hash, 'data.accumulating_lit_bunch', GainStagePlotter, train_id, numPixelPerGainStage)
+        
+            
 
             
             plot_hash = self.onlineImagePlotter.add_to_hash(plot_hash, 'data.test_hash', GainStagePlotter, train_id, numPixelPerGainStage)