add logs / unique keys for update