extract envs of proc