adding rcpp support