minor cleanup in engine.coffee