added top-level detection for data-event