move datagram processing back to separate thread