add debug statements in rrd_get_sources()