env HF and output matrix safety