works outside the env