working on sendPackets