diff --git a/data/rawdata/prospr-6dpf-1-whole-segmented-CrypticSegment.xml b/data/rawdata/prospr-6dpf-1-whole-segmented-CrypticSegment.xml
index 4272f85224ad1fcce64e14dd6c250d1a2935d4da..c756b3c3928c125ad3ca5730fe5fb0a7bda62a50 100644
--- a/data/rawdata/prospr-6dpf-1-whole-segmented-CrypticSegment.xml
+++ b/data/rawdata/prospr-6dpf-1-whole-segmented-CrypticSegment.xml
@@ -5,6 +5,12 @@
       <hdf5 type="relative">prospr-6dpf-1-whole-segmented-CrypticSegment.h5</hdf5>
     </ImageLoader>
     <ViewSetups>
+      <Attributes name="channel">
+        <Channel>
+          <id>1</id>
+          <name>1</name>
+        </Channel>
+      </Attributes>
       <ViewSetup>
         <id>0</id>
         <name>channel 1</name>
@@ -17,12 +23,6 @@
           <channel>1</channel>
         </attributes>
       </ViewSetup>
-      <Attributes name="channel">
-        <Channel>
-          <id>1</id>
-          <name>1</name>
-        </Channel>
-      </Attributes>
     </ViewSetups>
     <Timepoints type="range">
       <first>0</first>
diff --git a/data/rawdata/prospr-6dpf-1-whole-segmented-Head.xml b/data/rawdata/prospr-6dpf-1-whole-segmented-Head.xml
index 1d624ec7d8318349200b66e2cca546f3d363e96a..de6c25172fb3f5719e3555bfd429e93e46d70014 100644
--- a/data/rawdata/prospr-6dpf-1-whole-segmented-Head.xml
+++ b/data/rawdata/prospr-6dpf-1-whole-segmented-Head.xml
@@ -5,6 +5,12 @@
       <hdf5 type="relative">prospr-6dpf-1-whole-segmented-Head.h5</hdf5>
     </ImageLoader>
     <ViewSetups>
+      <Attributes name="channel">
+        <Channel>
+          <id>1</id>
+          <name>1</name>
+        </Channel>
+      </Attributes>
       <ViewSetup>
         <id>0</id>
         <name>channel 1</name>
@@ -17,12 +23,6 @@
           <channel>1</channel>
         </attributes>
       </ViewSetup>
-      <Attributes name="channel">
-        <Channel>
-          <id>1</id>
-          <name>1</name>
-        </Channel>
-      </Attributes>
     </ViewSetups>
     <Timepoints type="range">
       <first>0</first>
diff --git a/data/rawdata/prospr-6dpf-1-whole-segmented-PNS.xml b/data/rawdata/prospr-6dpf-1-whole-segmented-PNS.xml
index 2e3f4c95e3b640392438acd56f786ced6fb7d37f..fd9e36fc39b94751e60733d37f4e1c64de091053 100644
--- a/data/rawdata/prospr-6dpf-1-whole-segmented-PNS.xml
+++ b/data/rawdata/prospr-6dpf-1-whole-segmented-PNS.xml
@@ -5,6 +5,12 @@
       <hdf5 type="relative">prospr-6dpf-1-whole-segmented-PNS.h5</hdf5>
     </ImageLoader>
     <ViewSetups>
+      <Attributes name="channel">
+        <Channel>
+          <id>1</id>
+          <name>1</name>
+        </Channel>
+      </Attributes>
       <ViewSetup>
         <id>0</id>
         <name>channel 1</name>
@@ -17,12 +23,6 @@
           <channel>1</channel>
         </attributes>
       </ViewSetup>
-      <Attributes name="channel">
-        <Channel>
-          <id>1</id>
-          <name>1</name>
-        </Channel>
-      </Attributes>
     </ViewSetups>
     <Timepoints type="range">
       <first>0</first>
diff --git a/data/rawdata/prospr-6dpf-1-whole-segmented-Pygidium.xml b/data/rawdata/prospr-6dpf-1-whole-segmented-Pygidium.xml
index d2d0ccbe824d7a0ec2d6eaf51e3a847e77bd7e85..b9b40602fc9fb794667d80b7bfdf4027cd991189 100644
--- a/data/rawdata/prospr-6dpf-1-whole-segmented-Pygidium.xml
+++ b/data/rawdata/prospr-6dpf-1-whole-segmented-Pygidium.xml
@@ -5,6 +5,12 @@
       <hdf5 type="relative">prospr-6dpf-1-whole-segmented-Pygidium.h5</hdf5>
     </ImageLoader>
     <ViewSetups>
+      <Attributes name="channel">
+        <Channel>
+          <id>1</id>
+          <name>1</name>
+        </Channel>
+      </Attributes>
       <ViewSetup>
         <id>0</id>
         <name>channel 1</name>
@@ -17,12 +23,6 @@
           <channel>1</channel>
         </attributes>
       </ViewSetup>
-      <Attributes name="channel">
-        <Channel>
-          <id>1</id>
-          <name>1</name>
-        </Channel>
-      </Attributes>
     </ViewSetups>
     <Timepoints type="range">
       <first>0</first>
diff --git a/data/rawdata/prospr-6dpf-1-whole-segmented-RestOfAnimal.xml b/data/rawdata/prospr-6dpf-1-whole-segmented-RestOfAnimal.xml
index ff71c063ed5c0466baa2e6a5c982531bfcd37125..d97dd9d8fc84a272b4848b9e262795b4b07d45aa 100644
--- a/data/rawdata/prospr-6dpf-1-whole-segmented-RestOfAnimal.xml
+++ b/data/rawdata/prospr-6dpf-1-whole-segmented-RestOfAnimal.xml
@@ -5,6 +5,12 @@
       <hdf5 type="relative">prospr-6dpf-1-whole-segmented-RestOfAnimal.h5</hdf5>
     </ImageLoader>
     <ViewSetups>
+      <Attributes name="channel">
+        <Channel>
+          <id>1</id>
+          <name>1</name>
+        </Channel>
+      </Attributes>
       <ViewSetup>
         <id>0</id>
         <name>channel 1</name>
@@ -17,12 +23,6 @@
           <channel>1</channel>
         </attributes>
       </ViewSetup>
-      <Attributes name="channel">
-        <Channel>
-          <id>1</id>
-          <name>1</name>
-        </Channel>
-      </Attributes>
     </ViewSetups>
     <Timepoints type="range">
       <first>0</first>
diff --git a/data/rawdata/prospr-6dpf-1-whole-segmented-Stomodeum.xml b/data/rawdata/prospr-6dpf-1-whole-segmented-Stomodeum.xml
index 9439922e208cc40667320e57971b105eff2310b1..7f409ffffb16a2ba7a65ba13d0237eceef855798 100644
--- a/data/rawdata/prospr-6dpf-1-whole-segmented-Stomodeum.xml
+++ b/data/rawdata/prospr-6dpf-1-whole-segmented-Stomodeum.xml
@@ -5,6 +5,12 @@
       <hdf5 type="relative">prospr-6dpf-1-whole-segmented-Stomodeum.h5</hdf5>
     </ImageLoader>
     <ViewSetups>
+      <Attributes name="channel">
+        <Channel>
+          <id>1</id>
+          <name>1</name>
+        </Channel>
+      </Attributes>
       <ViewSetup>
         <id>0</id>
         <name>channel 1</name>
@@ -17,12 +23,6 @@
           <channel>1</channel>
         </attributes>
       </ViewSetup>
-      <Attributes name="channel">
-        <Channel>
-          <id>1</id>
-          <name>1</name>
-        </Channel>
-      </Attributes>
     </ViewSetups>
     <Timepoints type="range">
       <first>0</first>
diff --git a/data/rawdata/prospr-6dpf-1-whole-segmented-VNC.xml b/data/rawdata/prospr-6dpf-1-whole-segmented-VNC.xml
index 5072ebddf05a3025ab119510986dfca93adbd03d..77ea228a8d5a4e6670d5349fdda6a11575a8d90c 100644
--- a/data/rawdata/prospr-6dpf-1-whole-segmented-VNC.xml
+++ b/data/rawdata/prospr-6dpf-1-whole-segmented-VNC.xml
@@ -5,6 +5,12 @@
       <hdf5 type="relative">prospr-6dpf-1-whole-segmented-VNC.h5</hdf5>
     </ImageLoader>
     <ViewSetups>
+      <Attributes name="channel">
+        <Channel>
+          <id>1</id>
+          <name>1</name>
+        </Channel>
+      </Attributes>
       <ViewSetup>
         <id>0</id>
         <name>channel 1</name>
@@ -17,12 +23,6 @@
           <channel>1</channel>
         </attributes>
       </ViewSetup>
-      <Attributes name="channel">
-        <Channel>
-          <id>1</id>
-          <name>1</name>
-        </Channel>
-      </Attributes>
     </ViewSetups>
     <Timepoints type="range">
       <first>0</first>
diff --git a/make_initial_version.py b/make_initial_version.py
index aa993ae67aa88427cff5ca3e93db9944342b5aee..f8528b21808e57586c548afa7adbbf430ac0e8cb 100755
--- a/make_initial_version.py
+++ b/make_initial_version.py
@@ -2,11 +2,14 @@
 
 import os
 from shutil import copyfile
+from glob import glob
 
+import h5py
 from scripts.files import make_folder_structure
 from scripts.export import export_segmentation
 from scripts.files import make_bdv_server_file, copy_image_data, copy_misc_data
 from scripts.attributes import make_nucleus_tables, make_cell_tables
+from pybdv.converter import make_bdv
 
 
 def make_sbem_segmentations(old_folder, folder):
@@ -51,6 +54,23 @@ def make_sbem_tables(folder):
     copyfile(tissue_table_in, tissue_table_out)
 
 
+def make_prospr_region_segmentations():
+    in_prefix = '/g/arendt/EM_6dpf_segmentation/EM-Prospr/BodyPart_*.h5'
+    out_prefix = './data/rawdata/prospr-6dpf-1-whole-segmented-'
+    files = glob(in_prefix)
+    for p in files:
+        name = p.split('_')[-1][:-3]
+        o = out_prefix + name + '.h5'
+        print(p, "to", o)
+        with h5py.File(p) as f:
+            key = 't00000/s00/0/cells'
+            data = f[key][:]
+            data[data > 0] = 0
+            data[data < 0] = 255
+        make_bdv(data, o, 3 * [[2, 2, 2]],
+                 unit='micrometer', resolution=[0.5, 0.5, 0.5])
+
+
 def make_initial_version():
 
     src_folder = 'data/rawdata'
@@ -76,5 +96,7 @@ def make_initial_version():
                          os.path.join(folder, 'misc', 'bdvserver.txt'))
 
 
+
 if __name__ == '__main__':
+    # make_prospr_region_segmentations()
     make_initial_version()