rewrote the telnet