@add bezier code from webcore