add ring and sources query