corrected lifecycle env