add get input-output distance of a tree
add correct method for finding connectors