changed algorithm to run events on the "sve route" (have to be tested), leaved to older one commented