generate CSV/SVM refactor