updated hdf5 loading