better handling of control points but adding a control point has still a bug