lots of R stuff