some refactoring - spline lib added