backup before svm code refractoring