add event stream output method