adds support for queries with Sunlight API