added a drawing script for curves