some minor changes to pkt transmit