add nicer querying interface