added a setting of the enviroment variable for the child program.