add provenance to all queries