got the r instances working