fixes to mongo