changed concept to not use JSON but Lua instead