finding traces and placing connections