modify errors on osx