diff --git a/Modules/CppRestSdk/include/mitkRESTClient.h b/Modules/CppRestSdk/include/mitkRESTClient.h
index bf4d3b4147..4d29b01642 100644
--- a/Modules/CppRestSdk/include/mitkRESTClient.h
+++ b/Modules/CppRestSdk/include/mitkRESTClient.h
@@ -1,59 +1,61 @@
 /*===================================================================
 
 The Medical Imaging Interaction Toolkit (MITK)
 
 Copyright (c) German Cancer Research Center,
 Division of Medical and Biological Informatics.
 All rights reserved.
 
 This software is distributed WITHOUT ANY WARRANTY; without
 even the implied warranty of MERCHANTABILITY or FITNESS FOR
 A PARTICULAR PURPOSE.
 
 See LICENSE.txt or http://www.mitk.org for details.
 
 ===================================================================*/
 
 #ifndef MITKRESTCLIENT_H
 #define MITKRESTCLIENT_H
 
 #include "cpprest/asyncrt_utils.h"
 #include "cpprest/containerstream.h"
 #include "cpprest/filestream.h"
 #include "cpprest/http_client.h"
 #include "cpprest/json.h"
 #include "cpprest/producerconsumerstream.h"
 #include "cpprest/uri.h"
 
 // hm.. maybe go after that warning at some time? seems like a nasty hack, but works so far :)
 #pragma warning(disable : 4251)
 
 #include "MitkCppRestSdkExports.h"
 
 typedef web::http::client::http_client MitkClient;
 typedef web::http::http_request MitkRequest;
 typedef web::http::http_response MitkResponse;
 typedef web::http::methods MitkRESTMethods;
 typedef web::http::uri_builder MitkUriBuilder;
 typedef web::http::status_codes MitkRestStatusCodes;
 typedef web::json::json_exception MitkJsonException;
 
 namespace mitk
 {
   class MITKCPPRESTSDK_EXPORT RESTClient
   {
   public:;
     RESTClient(utility::string_t url);
     virtual ~RESTClient();
 
-    pplx::task<void> executeGETRequest(const utility::string_t filePath, utility::string_t uri);
-    pplx::task<void> executeWADOGET(const utility::string_t filePath, std::string studyUID, std::string seriesUID, std::string instanceUID);
-    pplx::task<void> executeWADOGET(const utility::string_t filePath, std::string studyUID, std::string seriesUID);
- 
+	pplx::task<void> Post(utility::string_t uri);
+    pplx::task<void> Get(const utility::string_t filePath, utility::string_t uri);
+    pplx::task<void> WadoRS(const utility::string_t filePath, std::string studyUID, std::string seriesUID, std::string instanceUID);
+    pplx::task<std::string> WadoRS(const utility::string_t filePath, std::string studyUID, std::string seriesUID);
+    pplx::task<void> StowRS(std::string studyUID);
+
   private:
     MitkClient m_Client;
 
   };
 };
 
-#endif // MITKRESTCLIENT_H
\ No newline at end of file
+#endif // MITKRESTCLIENT_H
diff --git a/Modules/CppRestSdk/include/mitkRESTServer.h b/Modules/CppRestSdk/include/mitkRESTServer.h
index e133a4c706..1bb89f6d2c 100644
--- a/Modules/CppRestSdk/include/mitkRESTServer.h
+++ b/Modules/CppRestSdk/include/mitkRESTServer.h
@@ -1,68 +1,68 @@
 /*===================================================================
 
 The Medical Imaging Interaction Toolkit (MITK)
 
 Copyright (c) German Cancer Research Center,
 Division of Medical and Biological Informatics.
 All rights reserved.
 
 This software is distributed WITHOUT ANY WARRANTY; without
 even the implied warranty of MERCHANTABILITY or FITNESS FOR
 A PARTICULAR PURPOSE.
 
 See LICENSE.txt or http://www.mitk.org for details.
 
 ===================================================================*/
 
 #ifndef MITKRESTSERVER_H
 #define MITKRESTSERVER_H
 
 #include <QObject>
 
 #include "cpprest/asyncrt_utils.h"
 #include "cpprest/containerstream.h"
 #include "cpprest/filestream.h"
 #include "cpprest/http_listener.h"
 #include "cpprest/json.h"
 #include "cpprest/producerconsumerstream.h"
 #include "cpprest/uri.h"
 
 // hm.. maybe go after that warning at some time? seems like a nasty hack, but works so far :)
 #pragma warning(disable : 4251)
 
 #include "MitkCppRestSdkExports.h"
 
 typedef web::http::experimental::listener::http_listener MitkListener;
 typedef web::http::http_request MitkRequest;
 typedef web::http::http_response MitkResponse;
 typedef web::http::methods MitkRESTMethods;
 typedef web::http::status_codes MitkRestStatusCodes;
 typedef web::json::json_exception MitkJsonException;
 
 namespace mitk
 {
   class MITKCPPRESTSDK_EXPORT RESTServer : public QObject
   {
 
   public:
     RESTServer();
     RESTServer(utility::string_t url);
     virtual ~RESTServer();
 
     pplx::task<void> Open() { return m_Listener.open(); }
     pplx::task<void> Close() { return m_Listener.close(); }
 
     static std::string convertToUtf8(utility::string_t stringT) { return utility::conversions::to_utf8string(stringT); }
 
   protected:
     virtual void HandleGet(MitkRequest message){};
     virtual void HandlePut(MitkRequest message){};
     virtual void HandlePost(MitkRequest message){};
     virtual void HandleDelete(MitkRequest message){};
     void HandleError(pplx::task<void> &t);
 
     MitkListener m_Listener;
   };
 };
 
-#endif // MITKRESTSERVER_H
\ No newline at end of file
+#endif // MITKRESTSERVER_H
diff --git a/Modules/CppRestSdk/src/mitkRESTClient.cpp b/Modules/CppRestSdk/src/mitkRESTClient.cpp
index d664d047ab..349e97bb84 100644
--- a/Modules/CppRestSdk/src/mitkRESTClient.cpp
+++ b/Modules/CppRestSdk/src/mitkRESTClient.cpp
@@ -1,115 +1,143 @@
 /*===================================================================
 
 The Medical Imaging Interaction Toolkit (MITK)
 
 Copyright (c) German Cancer Research Center,
 Division of Medical and Biological Informatics.
 All rights reserved.
 
 This software is distributed WITHOUT ANY WARRANTY; without
 even the implied warranty of MERCHANTABILITY or FITNESS FOR
 A PARTICULAR PURPOSE.
 
 See LICENSE.txt or http://www.mitk.org for details.
 
 ===================================================================*/
 
 #include "mitkRESTClient.h"
 
 #include <mitkCommon.h>
 
 mitk::RESTClient::RESTClient(utility::string_t url) : m_Client(url) {
 }
 
 mitk::RESTClient::~RESTClient() {}
 
-pplx::task<void> mitk::RESTClient::executeGETRequest(utility::string_t filePath, utility::string_t uri)
+pplx::task<void> mitk::RESTClient::Get(utility::string_t filePath, utility::string_t uri)
 {
   MITK_INFO << "Calling GET with " << utility::conversions::to_utf8string(uri) << " on client "
             << utility::conversions::to_utf8string(m_Client.base_uri().to_string()) << " save into "
             << utility::conversions::to_utf8string(filePath);
 
   auto fileBuffer = std::make_shared<concurrency::streams::streambuf<uint8_t>>();
 
   return concurrency::streams::file_buffer<uint8_t>::open(filePath, std::ios::out).then([=](concurrency::streams::streambuf<uint8_t> outFile) -> pplx::task<MitkResponse>
   {
     *fileBuffer = outFile;
 
     return m_Client.request(MitkRESTMethods::GET, uri);
   })
     // Write the response body into the file buffer.
     .then([=](MitkResponse response) -> pplx::task<size_t>
   {
       MITK_INFO << "Status code: " << response.status_code();
 
     return response.body().read_to_end(*fileBuffer);
   })
     // Close the file buffer.
     .then([=](size_t)
   {
     return fileBuffer->close();
   });
-  //  // Wait for the entire response body to be written into the file.
-  //  .wait();
+}
+
+pplx::task<void> mitk::RESTClient::Post(utility::string_t uri)
+{
+  MITK_INFO << "Calling POST with " << utility::conversions::to_utf8string(uri) << " on client "
+            << utility::conversions::to_utf8string(m_Client.base_uri().to_string());
 
+  return m_Client.request(MitkRESTMethods::POST, uri).then([&](MitkResponse response)
+  {
+      MITK_INFO << "Status code: " << response.status_code(); 
+  });
 }
 
-pplx::task<void> mitk::RESTClient::executeWADOGET(utility::string_t filePath, std::string studyUID, std::string seriesUID, std::string instanceUID)
+pplx::task<void> mitk::RESTClient::WadoRS(utility::string_t filePath, std::string studyUID, std::string seriesUID, std::string instanceUID)
 {
   MitkUriBuilder builder(U("wado"));
   builder.append_query(U("requestType"), U("WADO"));
   builder.append_query(U("studyUID"), utility::conversions::to_string_t(studyUID));
   builder.append_query(U("seriesUID"), utility::conversions::to_string_t(seriesUID));
   builder.append_query(U("objectUID"), utility::conversions::to_string_t(instanceUID));
   builder.append_query(U("contentType"), U("application/dicom"));
-  return executeGETRequest(filePath, builder.to_string());
+  return Get(filePath, builder.to_string());
 }
 
-pplx::task<void> mitk::RESTClient::executeWADOGET(const utility::string_t folderPath, std::string studyUID, std::string seriesUID)
+pplx::task<std::string> mitk::RESTClient::WadoRS(const utility::string_t folderPath, std::string studyUID, std::string seriesUID)
 {
+  // this is actually a quido-rs request, should be packed into a seperate method.. at some time.. 
+   //but there are many possible requests to support: http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.7.html
   MitkUriBuilder builder(U("rs/instances"));
   builder.append_query(U("StudyInstanceUID"), utility::conversions::to_string_t(studyUID));
   builder.append_query(U("SeriesInstanceUID"), utility::conversions::to_string_t(seriesUID));
 
   MITK_INFO << utility::conversions::to_utf8string(builder.to_string());
   MitkRequest getSeries(MitkRESTMethods::GET);
   getSeries.set_request_uri(builder.to_string());
   getSeries.headers().add(U("Accept"), U("application/json"));
 
-  return m_Client.request(getSeries).then([=](MitkResponse response)
+  return m_Client.request(getSeries).then([=](MitkResponse response) -> pplx::task<std::string>
   {
     MITK_INFO << "search for instances in series with uid " << seriesUID
               << " status: " << response.status_code();
 
     auto jsonListResult = response.extract_json().get();
     auto resultArray = jsonListResult.as_array();
 
+	auto firstFileName = std::string();
+
     std::vector<pplx::task<void>> tasks;
 
     for (unsigned short i = 0; i < resultArray.size(); i++)
     {
       try 
       {
         auto firstResult = resultArray[i];
         auto sopInstanceUIDKey = firstResult.at(U("00080018"));
         auto sopInstanceObject = sopInstanceUIDKey.as_object();
         auto valueKey = sopInstanceObject.at(U("Value"));
         auto valueArray = valueKey.as_array();
         auto sopInstanceUID = valueArray[0].as_string();
 
-        auto filePath = utility::string_t(folderPath)
-          .append(sopInstanceUID)
-          .append(U(".dcm"));
-        auto task = executeWADOGET(filePath, studyUID, seriesUID, utility::conversions::to_utf8string(sopInstanceUID));
+		auto fileName = sopInstanceUID.append(U(".dcm"));
+
+		// save first file name as result to load series
+		if (i == 0)
+		{
+			firstFileName = utility::conversions::to_utf8string(fileName);
+		}
+
+        auto filePath = utility::string_t(folderPath).append(fileName);
+        auto task = WadoRS(filePath, studyUID, seriesUID, utility::conversions::to_utf8string(sopInstanceUID));
         tasks.push_back(task);
       }
       catch (const web::json::json_exception& e) 
       {
         MITK_ERROR << e.what();
       }
     }
 
     auto joinTask = pplx::when_all(begin(tasks), end(tasks));
-    return joinTask;
+    return joinTask.then([=](void) 
+	{ 
+		return firstFileName;
+	});
   });
 }
+
+pplx::task<void> mitk::RESTClient::StowRS(std::string studyUID) {
+	// TODO: add data
+  MitkUriBuilder builder(U("rs/studies"));
+  builder.append_query(utility::conversions::to_string_t(studyUID));
+  return Post(builder.to_string());
+}
\ No newline at end of file
diff --git a/Plugins/org.mitk.gui.qt.segmentation.rework/CMakeLists.txt b/Plugins/org.mitk.gui.qt.segmentation.rework/CMakeLists.txt
index 05d0b97c3b..fb79d2b4b1 100644
--- a/Plugins/org.mitk.gui.qt.segmentation.rework/CMakeLists.txt
+++ b/Plugins/org.mitk.gui.qt.segmentation.rework/CMakeLists.txt
@@ -1,8 +1,7 @@
 project(org_mitk_gui_qt_segmentation_rework)
 
 mitk_create_plugin(
   EXPORT_DIRECTIVE REWORK_EXPORT
   EXPORTED_INCLUDE_SUFFIXES src
-  PACKAGE_DEPENDS Boost
   MODULE_DEPENDS MitkQtWidgetsExt MitkCppRestSdk MitkChart
 )
diff --git a/Plugins/org.mitk.gui.qt.segmentation.rework/src/internal/SegmentationReworkREST.cpp b/Plugins/org.mitk.gui.qt.segmentation.rework/src/internal/SegmentationReworkREST.cpp
index 0f7e65ab54..4355356664 100644
--- a/Plugins/org.mitk.gui.qt.segmentation.rework/src/internal/SegmentationReworkREST.cpp
+++ b/Plugins/org.mitk.gui.qt.segmentation.rework/src/internal/SegmentationReworkREST.cpp
@@ -1,86 +1,95 @@
 /*===================================================================
 
 The Medical Imaging Interaction Toolkit (MITK)
 
 Copyright (c) German Cancer Research Center,
 Division of Medical and Biological Informatics.
 All rights reserved.
 
 This software is distributed WITHOUT ANY WARRANTY; without
 even the implied warranty of MERCHANTABILITY or FITNESS FOR
 A PARTICULAR PURPOSE.
 
 See LICENSE.txt or http://www.mitk.org for details.
 
 ===================================================================*/
 
 #include "SegmentationReworkREST.h"
 #include <mitkCommon.h>
 
 SegmentationReworkREST::SegmentationReworkREST() {}
 
 SegmentationReworkREST::SegmentationReworkREST(utility::string_t url) : mitk::RESTServer(url)
 {
   m_Listener.support(MitkRESTMethods::PUT, std::bind(&SegmentationReworkREST::HandlePut, this, std::placeholders::_1));
 }
 
 SegmentationReworkREST::~SegmentationReworkREST() {}
 
 void SegmentationReworkREST::SetPutCallback(std::function<void(DicomDTO& message)> callback)
 {
   m_PutCallback = callback;
 }
 
 void SegmentationReworkREST::HandlePut(MitkRequest message)
 {
   auto messageString = message.to_string();
   MITK_INFO << "Message PUT incoming...";
   MITK_INFO << convertToUtf8(messageString);
 
   try
   {
     auto jsonMessage = message.extract_json().get();
 
     auto messageTypeKey = jsonMessage.at(U("messageType"));
     if (messageTypeKey.as_string() == U("downloadData"))
     {
+      auto imageStudyUIDKey = jsonMessage.at(U("studyUID"));
       auto imageSeriesUIDKey = jsonMessage.at(U("imageSeriesUID"));
-      auto imageStudyUIDKey = jsonMessage.at(U("imageStudyUID"));
-      auto imageInstanceUIDKey = jsonMessage.at(U("imageInstanceUID"));
+      auto segSeriesUIDAKey = jsonMessage.at(U("segSeriesUIDA"));
+      auto segSeriesUIDBKey = jsonMessage.at(U("segSeriesUIDB"));
+
+	  auto segInstanceUIDAKey = jsonMessage.at(U("segInstanceUIDA"));
+      auto segInstanceUIDBKey = jsonMessage.at(U("segInstanceUIDB"));
+
       auto simScoreKey = jsonMessage.at(U("simScoreArray"));
       auto minSliceStartKey = jsonMessage.at(U("minSliceStart"));
 
       DicomDTO dto;
-      dto.instanceUID = convertToUtf8(imageInstanceUIDKey.as_string());
-      dto.seriesUID = convertToUtf8(imageSeriesUIDKey.as_string());
+      dto.segSeriesUIDA = convertToUtf8(segSeriesUIDAKey.as_string());
+      dto.segSeriesUIDB = convertToUtf8(segSeriesUIDBKey.as_string());
+      dto.imageSeriesUID = convertToUtf8(imageSeriesUIDKey.as_string());
+      dto.segInstanceUIDA = convertToUtf8(segInstanceUIDAKey.as_string());
+      dto.segInstanceUIDB = convertToUtf8(segInstanceUIDBKey.as_string());
+
       dto.studyUID = convertToUtf8(imageStudyUIDKey.as_string());
       dto.minSliceStart = minSliceStartKey.as_integer();
 
       std::vector<double> vec;
       web::json::array simArray = simScoreKey.as_array();
 
       for (web::json::value score : simArray) {
         vec.push_back(score.as_double());
       }
 
       dto.simScoreArray = vec;
       m_PutCallback(dto);
       emit InvokeUpdateChartWidget();
     }
     else
     {
       message.reply(MitkRestStatusCodes::BadRequest, "Oh man, i can only deal with 'messageType' = 'downloadData'...");
     }
   }
   catch (MitkJsonException &e)
   {
     MITK_ERROR << e.what() << ".. oh man, that was not expected";
     message.reply(MitkRestStatusCodes::BadRequest, "oh man, that was not expected");
     return;
   }
   MitkResponse response(MitkRestStatusCodes::OK);
   response.headers().add(U("Access-Control-Allow-Origin"), U("localhost:9000/*"));
   response.set_body("Sure, i got you.. have an awesome day");
   message.reply(response);
   return;
 }
\ No newline at end of file
diff --git a/Plugins/org.mitk.gui.qt.segmentation.rework/src/internal/SegmentationReworkREST.h b/Plugins/org.mitk.gui.qt.segmentation.rework/src/internal/SegmentationReworkREST.h
index c502cecd85..98bde97924 100644
--- a/Plugins/org.mitk.gui.qt.segmentation.rework/src/internal/SegmentationReworkREST.h
+++ b/Plugins/org.mitk.gui.qt.segmentation.rework/src/internal/SegmentationReworkREST.h
@@ -1,50 +1,53 @@
 /*===================================================================
 
 The Medical Imaging Interaction Toolkit (MITK)
 
 Copyright (c) German Cancer Research Center,
 Division of Medical and Biological Informatics.
 All rights reserved.
 
 This software is distributed WITHOUT ANY WARRANTY; without
 even the implied warranty of MERCHANTABILITY or FITNESS FOR
 A PARTICULAR PURPOSE.
 
 See LICENSE.txt or http://www.mitk.org for details.
 
 ===================================================================*/
 
 #ifndef SegmentationReworkREST_h
 #define SegmentationReworkREST_h
 
 #include <mitkRestServer.h>
 
 class SegmentationReworkREST : public mitk::RESTServer
 {
   Q_OBJECT
 
 public:
 
   struct DicomDTO {
-    std::string seriesUID;
-    std::string studyUID;
-    std::string instanceUID;
+    std::string segSeriesUIDA;
+    std::string segSeriesUIDB;
+    std::string imageSeriesUID;
+	std::string studyUID;
+    std::string segInstanceUIDA;
+	std::string segInstanceUIDB;
     std::vector<double> simScoreArray;
     int minSliceStart;
   };
 
   SegmentationReworkREST();
   SegmentationReworkREST(utility::string_t url);
   ~SegmentationReworkREST();
 
   void HandlePut(MitkRequest message);
   void SetPutCallback(std::function<void(DicomDTO& message)> callback);
 
 signals:
   void InvokeUpdateChartWidget();
 
 private:
   std::function<void(DicomDTO& message)> m_PutCallback;
 };
 
-#endif // SegmentationReworkREST_h
\ No newline at end of file
+#endif // SegmentationReworkREST_h
diff --git a/Plugins/org.mitk.gui.qt.segmentation.rework/src/internal/SegmentationReworkView.cpp b/Plugins/org.mitk.gui.qt.segmentation.rework/src/internal/SegmentationReworkView.cpp
index 399e4a08c0..b59b9fc386 100644
--- a/Plugins/org.mitk.gui.qt.segmentation.rework/src/internal/SegmentationReworkView.cpp
+++ b/Plugins/org.mitk.gui.qt.segmentation.rework/src/internal/SegmentationReworkView.cpp
@@ -1,162 +1,167 @@
 /*===================================================================
 
 The Medical Imaging Interaction Toolkit (MITK)
 
 Copyright (c) German Cancer Research Center,
 Division of Medical and Biological Informatics.
 All rights reserved.
 
 This software is distributed WITHOUT ANY WARRANTY; without
 even the implied warranty of MERCHANTABILITY or FITNESS FOR
 A PARTICULAR PURPOSE.
 
 See LICENSE.txt or http://www.mitk.org for details.
 
 ===================================================================*/
 
 // Blueberry
 #include <berryISelectionService.h>
 #include <berryIWorkbenchWindow.h>
 
 // Qmitk
 #include "SegmentationReworkView.h"
 
 // Qt
 #include <QMessageBox>
 
 #include <mitkIOUtil.h>
 
 const std::string SegmentationReworkView::VIEW_ID = "org.mitk.views.segmentationreworkview";
 
-void SegmentationReworkView::SetFocus()
-{
-
-}
+void SegmentationReworkView::SetFocus() {}
 
 void SegmentationReworkView::CreateQtPartControl(QWidget *parent)
 {
   // create GUI widgets from the Qt Designer's .ui file
   m_Controls.setupUi(parent);
 
   connect(m_Controls.buttonUpload, &QPushButton::clicked, this, &SegmentationReworkView::UploadNewSegmentation);
 
-
   utility::string_t port = U("2020");
   utility::string_t address = U("http://127.0.0.1:");
   address.append(port);
 
   m_HttpHandler = std::unique_ptr<SegmentationReworkREST>(new SegmentationReworkREST(address));
 
-  connect(m_HttpHandler.get(), &SegmentationReworkREST::InvokeUpdateChartWidget, this, &SegmentationReworkView::UpdateChartWidget);
+  connect(m_HttpHandler.get(),
+          &SegmentationReworkREST::InvokeUpdateChartWidget,
+          this,
+          &SegmentationReworkView::UpdateChartWidget);
 
   m_HttpHandler->SetPutCallback(std::bind(&SegmentationReworkView::RESTPutCallback, this, std::placeholders::_1));
   m_HttpHandler->Open().wait();
 
   MITK_INFO << "Listening for requests at: " << utility::conversions::to_utf8string(address);
 
   utility::string_t pacsHost = U("http://193.174.48.78:8090/dcm4chee-arc/aets/DCM4CHEE");
   m_RestClient = new mitk::RESTClient(pacsHost);
-
-  utility::string_t folderPathSeries = U("/temp/downloadSeries/");
-  m_RestClient->executeWADOGET(folderPathSeries, "1.2.840.113654.2.70.1.311779127785374989361829772874593461506", "1.2.840.113654.2.70.1.182762555335754050396179618615436313390").wait();
-  MITK_INFO << "Loading series";
-  auto firstFilePath = folderPathSeries.append(U("1.2.840.113654.2.70.1.102028037630900004226480999888296698838.dcm"));
-  mitk::IOUtil::Load(utility::conversions::to_utf8string(firstFilePath), *this->GetDataStorage());
 }
 
-void SegmentationReworkView::RESTPutCallback(const SegmentationReworkREST::DicomDTO& dto)
+void SegmentationReworkView::RESTPutCallback(const SegmentationReworkREST::DicomDTO &dto)
 {
-  MITK_INFO << "callback! " << dto.studyUID << dto.seriesUID << dto.instanceUID;
   SetSimilarityGraph(dto.simScoreArray, dto.minSliceStart);
 
-  auto filePath = U("/temp/downloadWADO.dcm");
+  MITK_INFO << "Loading image series";
+  std::string folderPathSeries = "/temp/downloadSeries/";
+  m_RestClient->WadoRS(utility::conversions::to_string_t(folderPathSeries), dto.studyUID, dto.imageSeriesUID)
+    .then([&](std::string fileName) {
+      MITK_INFO << "Loading image series into data storage";
+      auto folderPath = folderPathSeries;
+      auto firstFilePath = folderPath.append(fileName);
+      mitk::IOUtil::Load(firstFilePath, *this->GetDataStorage());
+
+      MITK_INFO << "Loading segmentations...";
+
+	  auto filePathSegA = U("/temp/segA.dcm");
+      auto filePathSegB = U("/temp/segB.dcm");
 
- // m_RestClient->executeWADOGET(filePath, dto.studyUID, dto.seriesUID, dto.instanceUID);
+      m_RestClient->WadoRS(filePathSegA, dto.studyUID, dto.segSeriesUIDA, dto.segInstanceUIDA).then([&] {
+       mitk::IOUtil::Load(utility::conversions::to_utf8string(filePathSegA), *this->GetDataStorage());
+      });
 
-  MITK_INFO << "load file into data storage";
-  //mitk::IOUtil::Load(utility::conversions::to_utf8string(filePath), *this->GetDataStorage()).wait();
-  this->GetDataStorage()->GetAll()->at(0)->Update();
+      m_RestClient->WadoRS(filePathSegB, dto.studyUID, dto.segSeriesUIDB, dto.segInstanceUIDB).then([&] {
+        mitk::IOUtil::Load(utility::conversions::to_utf8string(filePathSegB), *this->GetDataStorage());
+      });
+    });
 }
 
-void SegmentationReworkView::UpdateChartWidget() {
+void SegmentationReworkView::UpdateChartWidget()
+{
   m_Controls.chartWidget->Show();
 }
 
 void SegmentationReworkView::SetSimilarityGraph(std::vector<double> simScoreArray, int sliceMinStart)
 {
   std::map<double, double> map;
   MITK_INFO << simScoreArray.size();
 
   double sliceIndex = sliceMinStart;
-  for (double score : simScoreArray) {
+  for (double score : simScoreArray)
+  {
     map.insert(std::map<double, double>::value_type(sliceIndex, score));
     sliceIndex++;
   }
   m_Controls.chartWidget->AddData2D(map, "similarity score");
   m_Controls.chartWidget->SetChartType("similarity score", QmitkChartWidget::ChartType::line);
   m_Controls.chartWidget->SetXAxisLabel("slice number");
   m_Controls.chartWidget->SetYAxisLabel("similarity score");
 }
 
-
 void SegmentationReworkView::OnSelectionChanged(berry::IWorkbenchPart::Pointer /*source*/,
                                                 const QList<mitk::DataNode::Pointer> &nodes)
 {
   // iterate all selected objects, adjust warning visibility
   foreach (mitk::DataNode::Pointer node, nodes)
   {
     if (node.IsNotNull() && dynamic_cast<mitk::Image *>(node->GetData()))
     {
       m_Controls.labelWarning->setVisible(false);
       return;
     }
   }
 
   m_Controls.labelWarning->setVisible(true);
 }
 
-void SegmentationReworkView::UploadNewSegmentation()
-{
-
-}
+void SegmentationReworkView::UploadNewSegmentation() {}
 
 void SegmentationReworkView::DoImageProcessing()
 {
   QList<mitk::DataNode::Pointer> nodes = this->GetDataManagerSelection();
   if (nodes.empty())
     return;
 
   mitk::DataNode *node = nodes.front();
 
   if (!node)
   {
     // Nothing selected. Inform the user and return
     QMessageBox::information(nullptr, "Template", "Please load and select an image before starting image processing.");
     return;
   }
 
   // here we have a valid mitk::DataNode
 
   // a node itself is not very useful, we need its data item (the image)
   mitk::BaseData *data = node->GetData();
   if (data)
   {
     // test if this data item is an image or not (could also be a surface or something totally different)
     mitk::Image *image = dynamic_cast<mitk::Image *>(data);
     if (image)
     {
       std::stringstream message;
       std::string name;
       message << "Performing image processing for image ";
       if (node->GetName(name))
       {
         // a property called "name" was found for this DataNode
         message << "'" << name << "'";
       }
       message << ".";
       MITK_INFO << message.str();
 
       // actually do something here...
     }
   }
 }