set environment for ledger.