archive rewrite