add safe attributes