set environment in start