minor changes to gen_config_diamond