added Telnet support (fixes #6)