read some more about sockets, and simplied based on that