add createCurveConnection; borderWith has to be set asynchronous for some reasons