sockets functioning, could use a delete function?