add update script for MacOS