fix for seria/deser. we do this exactly once now. using zeromq envelops shoudld be faster.

but lots of hacks and disabled checkstyle.