adding support for sending a queryPattern for priming queries