set key via environment variable