add ability to specify an initial query