set api key globally.