svm struct api factory