only add repos when needed