adding rest for mongo