fixed memory issue, added copy handling for uncompressed vcf