improved rpi examples