updated to work with AFNetworking 2.0