add hdPockets and allFunds to scope.