made the telnet connection read until a login prompt
removed some hardcoded debugging statements