added a way to rebuild the wallet from inside the app