diff --git a/src/ContaoCommunityAlliance/ComposerInstaller/ModuleInstaller.php b/src/ContaoCommunityAlliance/ComposerInstaller/ModuleInstaller.php
index <HASH>..<HASH> 100644
--- a/src/ContaoCommunityAlliance/ComposerInstaller/ModuleInstaller.php
+++ b/src/ContaoCommunityAlliance/ComposerInstaller/ModuleInstaller.php
@@ -9,7 +9,21 @@ class ModuleInstaller extends LibraryInstaller
 {
     public function getInstallPath(PackageInterface $package)
     {
-        return '../system/modules/' . $package->getPrettyName();
+        $extra = $package->getExtra();
+
+        if(!array_key_exists('contao', $extra))
+        {
+            throw new \ErrorException("A contao-module needs the contao declaration within the extra block!");
+        }
+
+        $contao = $extra['contao'];
+
+        if(!array_key_exists('target', $contao))
+        {
+            throw new \ErrorException("Please add a target key to the contao section, _composer for example (folder name in contao)!");
+        }
+
+        return '../system/modules/' . $contao['target'];
     }
 
     /**
work with the contao extra block