add option to save session every x nodes

defaults to 100