Lua API additions and more config in xml