added broadcasting and echoing of events