added 2 byte size messageLength to packetheader