merge parser/encoder

first tentative steps into a bold new world