crack at fixing capPartition and logTransactionOpsRef, need to write trimmer and tests