added IQuery.State