adding debug log for event messages