added event emitter to twit and server