update read hdf5 code