updated to support new format in requesting to server