added IQuery.State to iquery.ipkg