do not forget to call free_feature_vector once done!