notebook cleanup