compilation from Lua works but still very fragile