set up env finally.