support for gzip and bzip2 compressed files