diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9f0a102c8b0d25477ff042da32e40f5a3ae69ef0..ac33d3d47f4f02c1472e10be206c392592ba9f56 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -72,6 +72,20 @@ MEM:
       - mem.txt
     name: "${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
 
+MEM_DL:
+  stage: test
+  script:
+    - cd $CMSSW_BASE
+    - tar -xzf $CI_HOME/cmssw.tgz
+    - cd src
+    - scram b python
+    - cd $CI_HOME
+    - mem_test_dl | tee -i mem.txt
+  artifacts:
+    paths:
+      - mem_dl.txt
+    name: "${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
+
 DNN:
   stage: test
   script:
diff --git a/setup/install_mem.sh b/setup/install_mem.sh
index de8aa9c0b18ae050f87da1721024187c337f508c..99daf95ebab8a9f31a475ad88f5509232fb0c2f2 100644
--- a/setup/install_mem.sh
+++ b/setup/install_mem.sh
@@ -10,12 +10,13 @@ action() {
 		cd src/TTH
 
 		# get the MEM code
-		git clone https://github.com/jpata/Code.git MEIntegratorStandalone --branch master
+		git clone https://gitlab.cern.ch/jpata/MEIntegratorStandalone.git MEIntegratorStandalone --branch master
 
 		# copy the OpenLoops ME libraries
 		cp -R MEIntegratorStandalone/libs/* ../../lib/$SCRAM_ARCH/
 
 		eval `scramv1 runtime -sh`
+		ls
 		scram setup MEIntegratorStandalone/deps/gsl.xml
 
 		cd $origin