check for API key