getting API key from environment