cleanup template env creation