added start for binary modi in genpacket