finish off (untested) groupname work, now need to expose it via an env API