added fn to get last saved ledger