update for running on Mac