diff --git a/FastComtecMCS8A/blacs_workers.py b/FastComtecMCS8A/blacs_workers.py
index 8eadbc6d9acf176bc8f66575aaa35ebb9f5b0fdc..d0a43f305c233159586f1f4c367620bbcc40387c 100644
--- a/FastComtecMCS8A/blacs_workers.py
+++ b/FastComtecMCS8A/blacs_workers.py
@@ -15,14 +15,17 @@ from blacs.tab_base_classes import Worker
 
 class MCS8AWorker(Worker):
 
-    def init(self):
+    def init(self, h5_file):
         self.config = spcm_config_start.setup
         self.batch_file = self.config.get_config_key('Settings', 'batch_file')
-        self.process = subprocess.Popen(self.batch_file) # run batch file
-        # Do the rest
+        self.process = subprocess.Popen(self.batch_file)
+        self.h5file = h5_file    # run batch file
+        # Do the rest        
         self.dll_path  = self.config.get_config_key('Settings', 'dll_path')
         self.dll=WinDLL(self.dll_path) #put DLL path into the conf file
         print('init completed')
+        self.h5file = h5_file 
+        pass 
     
     def transition_to_buffered(self, device_name, h5_file, initial_values, fresh):
         self.h5file = h5_file