a better way of setting the environment variables.