manifest rewrite