trying to get sockets working right