add events and logging