added iOS 6 and iOS 6.1 support