sped up metadata reading by only snanning the first 10,000 bytes