changes for QueryPath3 for define/refine search scope

changes for QueryPath3 for define/refine search scope