some sockets stuff that does not work