add error check to see if group is in index file