add capture.lua