set key to be environment variable