cleaning the manifest and adding chains