correct telnet vm logic