new query-engine, fixed recursion in resolveAllDependants