adds verbosity to sweep_shared_terms