hdf5 reading and writing now specialized