Fix latest merge, add missing repository method