set env earlier

it is required during pool setup already