remove unused files, add more udp functions