wrapper for config and mongos