update and environmental fix