worked on restore transactions, #3