add support for gzipped input files