added support for mongo uri