Comments on repairLayer, upgradeLayer preparation