fix mongo stuff