preparing env.