found bug in script that was omitting ledger entries