Pass path in as variable instead of as part of event type