14 add logic to control environment variable for ruby script