clean up for OS X