finished the packet parser.