added group_id to query presences