add capture path check