revised the telnet server/client