state machine version packet parser
format output;
reform parse algrithm