added api key logging