api.lua: declare variables as local