come back to slower version to read gzipped files