got parser / encoder to work