replaced AFNEtworking 1.0 code with AFNetworking 2.0, airplane mode check now uses that