migrate from lua to luajit for bytecode portability