update LUA script