added support for older AFNetworking library