add custom attributes to safe_attributes