issue #3675, add Lua API usage.