adding the node id to every event