support for compressed file (bzip, gzip, zip)