refactored afnetworking calls