building  cluster_config structure