add safe extract