improved ledger handling for the brokers