notebook update

Trying to reduce memory leaks