added prototype of telnet communication