how to store api key as environment variable