implemented backing up the wallet to a given path