added mongo shenanigans