clean up work and making sure that the manifest is updated