fixing mistakes in send_udp, changes in log messages