adding secrets logic