working on hdf5 compatibility