really added minsafe to factory and provider generator