rewrite manifests