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