add RObject and Rcodes