add osx improvements.