fixed hdf5 functionality