update switch statement for API keys