updating with environment support