fix some bugs
add additional params to mongo config