make telnet manager an event emitter