changed path to use the env variable instead a global that doesnt exist