working on Telnet functionality