some random ruby telnet stuff