add the ability to set query options.
Merge remote-tracking branch 'origin/master'