Add tee fitting were applicable at pipe intersections

here i imported the pipes from autocad drawing using the mepover package and used the elbow fitting which works well
The problem now is the node tee.by2MEPcurves does not work when i select 1 main pipe and several branches i tried cycle but still does not recognize all nodes.
Also I have list of pipes is there a node to takes all pipes as input and figures out which is main and which is branch and adds tee fitting