fixes to mongo adapter