tweaked getrepo to use groups and setup vars to protect against updates/perm changes