added tar/tar.gz file handling