encoder, decoder and nextDoc implemented.