only one function to run Lua scripts