simplify HDF5 interface, remove mode