plugin hook for load_wallet