add support for setting the timeout for queries