adapt to new event.path api: now a property, not a function