update mac environment