added a quick hack to make mongo config work.
need to fix.