update to work on osx