working towards osx compatibility