messing around with ruby sockets