todo support for telnet