diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/execution/YamlLoader.kt b/theodolite-quarkus/src/main/kotlin/theodolite/execution/YamlLoader.kt
index d52e7e392de61081c03a9ce79a076758cce87339..6fda0d51f49f57302dc9f89186cdb0c0ee87d071 100644
--- a/theodolite-quarkus/src/main/kotlin/theodolite/execution/YamlLoader.kt
+++ b/theodolite-quarkus/src/main/kotlin/theodolite/execution/YamlLoader.kt
@@ -2,6 +2,7 @@ package theodolite.execution
 
 import io.fabric8.kubernetes.api.model.ConfigMap
 import io.fabric8.kubernetes.api.model.Service
+import io.fabric8.kubernetes.api.model.apiextensions.v1beta1.CustomResourceDefinition
 import io.fabric8.kubernetes.api.model.apps.Deployment
 import io.fabric8.kubernetes.client.NamespacedKubernetesClient
 import mu.KotlinLogging
@@ -26,19 +27,18 @@ class YamlLoader(client: NamespacedKubernetesClient) {
         return service
     }
 
-
     /**
      * Parses a Service from a servive yaml
      * @param path of the yaml file
      * @return service from fabric8
      */
-    fun loadService(path: String): Service {
+    fun loadServiceMonitor(path: String): CustomResourceDefinition {
 
-        val service = loadGenericRessource(path, { x: String -> client.services().load(x).get() })
-        return service
+        val serviceMonitor =
+            loadGenericRessource(path, { x: String -> client.customResourceDefinitions().load(x).get() })
+        return serviceMonitor
     }
 
-
     /**
      * Parses a Deployment from a Deployment yaml
      * @param path of the yaml file