added pathGenerator, added mongo client connection