adding support for different kinds of mongo configs