remove engine.stop() and move to a new engine creation model.