refined archive.gura script