added shell function that uses telnet lib