handle tar.gz, tar.bz, .tar in memory