remove a few c-ism
getScriptEngine a const reference