added simple version for curve area, some fixes