a new way to log events