initTree needs fix for patterns