adapted to tarball