writing default output handler, events