read data over udp properly