wurst: use loop to register event listeners