fixed environment variables to pull from process first