small drienvironment constructor change