need extended env in a few places