diff --git a/public_html/packages/index.php b/public_html/packages/index.php
index 45e0003f106b9aaf273e9c278d42a728c756ffce..b72885a91ff6fd00defdc8702e390ef13e9222d9 100644
--- a/public_html/packages/index.php
+++ b/public_html/packages/index.php
@@ -6,7 +6,8 @@
  * GET  /packages/[phase]/[ID]/[filename]
  * 
  * ----------------------------------------------------------------------
- * 2021-03-31  v0.0  <axel.hahn@iml.unibe.ch>  init
+ * 2021-03-31  v1.0  <axel.hahn@iml.unibe.ch>  init
+ * 2023-09-15  v1.1  <axel.hahn@unibe.ch>      debug now driven by config
  * ======================================================================
  */
 
@@ -16,9 +17,9 @@
     error_reporting(E_ALL);
 
     require_once('../inc_functions.php');
-    $aConfig=require_once("../inc_config.php");
+    $aConfig=require_once("../inc_config.php");    
+    $bDebug=(isset($aConfig['debug']) && $aConfig['debug']) ? true : false;
     
-    $bDebug=isset($aConfig['debug']) && $aConfig['debug'] ? true : false;
     $lockfile=$aConfig['tmpdir'].'/used_hashes.txt';
     $iMaxAge=$aConfig['maxage'];
 
@@ -78,7 +79,7 @@
     if (!file_exists($sMyFile)){
         _quit('File not found.', 404);
     }
-    
+    _wd('file exists send X-Sendfile header...');
     // let the webserver deliver a given file 
     header('X-Sendfile: ' . $sMyFile);