fix parent/child querying