changes to ref groups
few code changes for rerunning refs