added api key implementation