adapted to tarball/8