add safe atom code