fix secure env