checked for valid tarfile