improved LayerConfigV2 handling