adding support for reading gzipped files