setting api_key in config