add support for reading gzipped files