[gapDetect] add gap detection script