add iOS 5 support