added ledger mode