refactored mongotripod