make events based on path