add capture functionality