altered group-ref query (groups-backend)