function ledger importer