add get repository method