support saving hdf5 format