port allies-01 to new Lua API