init the environment