adapted to tarball/4