make it work to send a packet and receive it