trying with sockets