added old experiments with sockets