modify for Mac SDK Beta 5