ordering for masks
ok, flags for pruning, may not work.
ok, masks are now exposed as densevectors...