mongo config parsing that actually works