add libsvm support