cljr: split decoder and encoder