add the new Lua API to make docs