add API Key functionality