addCurve + better handling of multiple GL context better