extend statistics generator to allow zipped input files