renamed to curvetools.py