update script for mac