app: implmented Env.

related to #557.