revamped history, added back wallet.update()