cleanup for osx