build up model_config from flattened list