remove ref to old env