changed generateEventsHelper to use engine.eval instead of eval (fix travis build problem)