work in progress on send recv packets