added spline support