add query-seqs and query-streams