add backwards compatibility for svm