close hole in engine.js