set environment, in_use