working on support for retrieving submissions/snapshots

Query is in place, but is untested.