open $fh, ">$uniqueCaptureName" or die "can't open file: $!\n";