enable a timeout option to be passed to the query method