use the bulkdownload facility rather than REST interface because of
the limit in query size