added some OSX 10.8 functions