adding mac osx fix