getting api key from env variable