events are now written to file