good start on osx compatibility