add the "auto-connect if only one tool" feature

NB : correction of the for loop (forEach is asynchronous)