add use of environment variable for local node directory
add some logging