upgraded path evaluator with augmented min() and max() function
add more carets up to the 7th nested group level