added functionality for gzipped tar files