modified lua script to include luajit