added mongo stuff