using cocoapod; using AFNetworking lib; code refactor