fixup! add write_finished event