add some R stuff