migrate from serial to udp communication