local version of LibSVM wrapper