add simple line connecting functionality