added querying interface