new style for getRepo