fixed osx stuff