added pref  for api key and secret