added simple telnet wrapper