moved from LuaXML to internal solution