work on api.lua:163 as a non-executable snippet