small change to API key loading