made little better mongoDB support