cleanup and saved dependencies.