add event logging