working on compound operations
heavily refactor query operations toward making them re-entrant. despite the way my brain feels, this worked on the second try. i should try being sick more often.