updated Lua binding to 0.5.4, applied changes