add repository setting method