working on discovery_cmd

todo: rewrite socket library
udp_socket updating
udp_socket update 2