various improvements to support known-good operations in mongo