adds iOS 6 and other fixes