note that setApiKeys is undocumented