added functions safeguard.d.data and safeguard.r.data