Update api for lua-bindings