improve svm parsing