use $repo when possible