some problems with sockets