update for Mac and Linux