add type to packet in sender mode