added svm service and some fixes