client: get env.

related to #2.