updated for MacOS 10.8