getting further on current sam to hdf5 conversion