start to fix factorization to not add mutual branches to saved nodes, not yet complete