mongo lib helpers