some weird bugs with opening two sockets, commenting problem code out
and figuring out how to make it work