improve svm model setup