new function rrd_fetch_r() (and make the