add hdf5 encoder all methods - currently not working