added a more general 'nestEnv' and renamed the old one 'nestEnv''