rewrite manifest