modified so gzip dont have to be unzipped to read them