some new stuff for collapsing the ops