extracting tar.gz files to temp directory and using that instead of the tar.gz file