finish removing all stdout writing in favor of events