diff --git a/Makefile b/Makefile
index e99852fb9aa87704321ebe33ad2b7d32d7b92e5b..85d776890c6b8a7b227546092003da0b8319fe0d 100644
--- a/Makefile
+++ b/Makefile
@@ -52,11 +52,11 @@ logs:
 
 cernlib_im: profiles setup logs
 	echo "starting cernlib with imake"
-	. delphi.sh; ./make_cernlib $(CERNVER) 0 $(LEGACY) > logs/make_cernlib-imake.log 2>&1 || ( cat logs/make_cernlib-cmake.log; ${FALSE} )
+	. delphi.sh; ./make_cernlib $(CERNVER) 0 OFF $(LEGACY) > logs/make_cernlib-imake.log 2>&1 || ( cat logs/make_cernlib-cmake.log; ${FALSE} )
 
 cernlib_cm: profiles setup logs
 	echo "starting cernlib with cmake"
-	. delphi.sh; ./make_cernlib $(CERNVER) 1 $(LEGACY) > logs/make_cernlib-cmake.log 2>&1 || ( cat logs/make_cernlib-cmake.log; ${FALSE} )
+	. delphi.sh; ./make_cernlib $(CERNVER) 1 ON $(LEGACY) > logs/make_cernlib-cmake.log 2>&1 || ( cat logs/make_cernlib-cmake.log; ${FALSE} )
 
 cernlib: profiles setup logs
 	echo "starting cernlib, imake build may fail"
diff --git a/env/delphi.csh.template b/env/delphi.csh.template
index 1717daeafe1fef9620097e68e1419563a927db5a..32ae702cd099138ed74e58264d06f67165bc41a9 100644
--- a/env/delphi.csh.template
+++ b/env/delphi.csh.template
@@ -89,9 +89,9 @@ setenv DELPHI_DAT ${GROUP_DIR}/dstana/${PRO}/dat
 setenv DELPHI_BIN ${GROUP_DIR}/bin
 setenv DELPHI_CRA ${DELPHI_PAM}
 setenv DELPHI_PATH ${DELPHI_BIN}
-if (-e /eos/opendata/delphi/condition-data ) then
-  setenv DELPHI_DDB /eos/opendata/delphi/condition-data
-else if (-e /eos/experiment/delphi/castor2015/ddb ) then
+
+setenv DELPHI_DDB /eos/opendata/delphi/condition-data
+if (-e /eos/experiment/delphi/castor2015/ddb ) then
   setenv DELPHI_DDB /eos/experiment/delphi/castor2015/ddb
 endif
 
@@ -126,9 +126,8 @@ if ( -e ${DELPHI_INSTALL_DIR}/pdl ) then
 endif
 
 # data location
-if ( -e /eos/opendata/delphi ) then
-   setenv DELPHI_DATA_ROOT "/eos/opendata/delphi"
-else if ( -e /eos/experiment/delphi/castor2015 ) then
+setenv DELPHI_DATA_ROOT "/eos/opendata/delphi"
+if ( -e /eos/experiment/delphi/castor2015 ) then
    setenv DELPHI_DATA_ROOT "/eos/experiment/delphi/castor2015"
 endif
 
@@ -179,3 +178,6 @@ setenv OS `uname -s`
 
 # define dellevel as alias
 alias dellevel 'eval `dellevel.pl \!* -c`'
+
+# XRootD setup default to opendata
+setenv XROOTD_VMP eospublic.cern.ch:/eos/opendata/=/eos/opendata/
diff --git a/env/delphi.sh.template b/env/delphi.sh.template
index 2363efe7a234fb8e64d2baa3320bc0659a880f33..2f9c46779ff5c3dd26e4f37aa218acd727b3ce87 100644
--- a/env/delphi.sh.template
+++ b/env/delphi.sh.template
@@ -117,9 +117,8 @@ export DELPHI_CRA=${DELPHI_PAM}
 export DELPHI_PATH=${DELPHI_BIN}
 
 # ddb location
-if test -e /eos/opendata/delphi/condition-data ; then
-    export DELPHI_DDB=/eos/opendata/delphi/condition-data    
-elif test -e /eos/experiment/delphi/castor2015/ddb ; then
+export DELPHI_DDB=/eos/opendata/delphi/condition-data    
+if test -e /eos/experiment/delphi/castor2015/ddb ; then
     export DELPHI_DDB=/eos/experiment/delphi/castor2015/ddb
 fi
 
@@ -152,9 +151,8 @@ if test -e ${DELPHI_INSTALL_DIR}/pdl ; then
 fi
 
 # data location
-if test -e /eos/opendata/delphi ; then
-    export DELPHI_DATA_ROOT="/eos/opendata/delphi"
-elif test -e /eos/experiment/delphi/castor2015 ; then
+export DELPHI_DATA_ROOT="/eos/opendata/delphi"
+if test -e /eos/experiment/delphi/castor2015 ; then
     export DELPHI_DATA_ROOT="/eos/experiment/delphi/castor2015"
 fi
 
@@ -203,3 +201,6 @@ unset x
 
 # add also $OS variable
 export OS=`uname -s`
+
+# XRootD setup default to opendata
+export XROOTD_VMP=eospublic.cern.ch:/eos/opendata/=/eos/opendata/
diff --git a/make_cernlib b/make_cernlib
index c4a9d4d613b3f7b2fee8b80ab768998e83038c79..c91861bee1ff5e4a08acc5d72113fbc7d8c5d0af 100755
--- a/make_cernlib
+++ b/make_cernlib
@@ -9,11 +9,15 @@ unset FFLAGS
 unset CCOMP
 unset FCOMP
 unset LDFLAGS
+#export CC=clang
+#export CXX=clang
+#export CCOMP=clang
 
 # if $CERN is set we use that one, else we build from here
 export version=$1
 export use_cmake=$2
-export LEGACY=$3
+export CERNLIB_SHIFT=$3
+export LEGACY=$4
 
 arch=`uname -s`
 if [ "x$arch" = "xDarwin" ]; then
@@ -42,9 +46,12 @@ mkdir build
 cd build
 pwd
 ls -l
-git clone https://:@gitlab.cern.ch:8443/dphep/cernlib/cernlib.git
+#git clone https://:@gitlab.cern.ch:8443/dphep/cernlib/cernlib.git
+#cd cernlib
+#git checkout tags/cernlib-$version
+git clone https://:@gitlab.cern.ch:8443/schwicke/cernlib.git
 cd cernlib
-git checkout tags/cernlib-$version
+git checkout xrootd
 
 # select 2022 extensions
 echo '#define CERNLIB_2022 yes' >> config/host.def
@@ -54,18 +61,18 @@ if [ "x$use_cmake" = "x1" ]; then
     cd build
     if [ -z $LEGACY ]; then
 	if [ "x$arch" = "xDarwin" ]; then
-	    cmake -DCERNLIB_NO_SUFFIX=1 -DCERNLIB_2022=yes -DCERNLIB_POSITION_INDEPENDENT_CODE=OFF -DCERNLIB_BUILD_SHARED=OFF -DCERNLIB_ENABLE_TEST=ON -DCMAKE_INSTALL_DIR=/ ..
+	    cmake -DCERNLIB_NO_SUFFIX=1 -DCERNLIB_2022=yes -DCERNLIB_POSITION_INDEPENDENT_CODE=OFF -DCERNLIB_BUILD_SHARED=OFF -DCERNLIB_ENABLE_TEST=ON -DCMAKE_INSTALL_DIR=/ -DCERNLIB_SHIFT=${CERNLIB_SHIFT} ..
             rc=$?
 	else
-	    cmake -DCMAKE_INSTALL_DIR=/ -DCERNLIB_NO_SUFFIX=1 -DCERNLIB_2022=yes -DCERNLIB_ENABLE_TEST=ON -DCERNLIB_POSITION_INDEPENDENT_CODE=OFF ..
+	    cmake -DCMAKE_INSTALL_DIR=/ -DCERNLIB_NO_SUFFIX=1 -DCERNLIB_2022=yes -DCERNLIB_ENABLE_TEST=ON -DCERNLIB_POSITION_INDEPENDENT_CODE=OFF -DCERNLIB_SHIFT=${CERNLIB_SHIFT} ..
             rc=$?
 	fi
     else
-	cmake -DCMAKE_INSTALL_DIR=/ -DCERNLIB_NO_SUFFIX=1 -DCERNLIB_2022=yes -DCERNLIB_ENABLE_TEST=ON -DCERNLIB_FORCE_32=ON -DCERNLIB_POSITION_INDEPENDENT_CODE=OFF ..
+	cmake -DCMAKE_INSTALL_DIR=/ -DCERNLIB_NO_SUFFIX=1 -DCERNLIB_2022=yes -DCERNLIB_ENABLE_TEST=ON -DCERNLIB_FORCE_32=ON -DCERNLIB_POSITION_INDEPENDENT_CODE=OFF -DCERNLIB_SHIFT=${CERNLIB_SHIFT} ..
         rc=$?
     fi
     if [ $rc -eq 0 ]; then
-        make -j 20
+        make -j
         rc=$?
         if [ $rc -eq 0 ]; then
             cmake --install . --prefix ${CERN}/${version}-cm
diff --git a/runtime/perl/Delphi/Fatmen.pm b/runtime/perl/Delphi/Fatmen.pm
index f5ff9ffea36874120427d3d79cc0f80b81e70a05..5fb340d06efe0448585bf91ad9d08dce0e2c2bd2 100644
--- a/runtime/perl/Delphi/Fatmen.pm
+++ b/runtime/perl/Delphi/Fatmen.pm
@@ -95,7 +95,7 @@ sub ExpandContent($$){
     #
     # check where we area reading the data from
     #
-    our $DELPHI_DATA_ROOT="/eos/experiment/delphi/castor2015";
+    our $DELPHI_DATA_ROOT="/eos/opendata/delphi";
     $DELPHI_DATA_ROOT=$ENV{"DELPHI_DATA_ROOT"} if (defined $ENV{"DELPHI_DATA_ROOT"} && (-d $ENV{"DELPHI_DATA_ROOT"}));
     #
     # inflate the "Cont" fields
diff --git a/runtime/perl/Delphi/FatmenCastor.pm b/runtime/perl/Delphi/FatmenCastor.pm
index 336f95a3e7786c37a6e83a67aa1bfb01b71b6c11..956e23e3060529e05f4da38e53c9be737c6da076 100644
--- a/runtime/perl/Delphi/FatmenCastor.pm
+++ b/runtime/perl/Delphi/FatmenCastor.pm
@@ -123974,7 +123974,7 @@ sub ExpandContent($$){
     #
     # check where we area reading the data from
     #
-    our $DELPHI_DATA_ROOT="/eos/experiment/delphi/castor2015";
+    our $DELPHI_DATA_ROOT="/eos/opendata/delphi";
     $DELPHI_DATA_ROOT=$ENV{"DELPHI_DATA_ROOT"} if (defined $ENV{"DELPHI_DATA_ROOT"} && (-d $ENV{"DELPHI_DATA_ROOT"}));
     #
     # inflate the "Cont" fields