diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9c75a77065aee0a7510634e4fb578a10fd3b3758..bc088333808b8ce0412744db012dbfe80f181f11 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,6 +24,8 @@ before_script:
   - python3 -V  # Print out python version for debugging
   - pip3 install build
   - python3 -m venv || apt-get -y install python3-venv
+  - if [[ "$CI_COMMIT_BRANCH" != "master" ]]; then sed -i "s%git+https://git.scc.kit.edu/scc-net/net-suite/api-generator.git@master%git+https://git.scc.kit.edu/scc-net/net-suite/api-generator.git@${CI_COMMIT_BRNACH}%g" pyproject.toml; fi
+
 
 stages:
   - build
@@ -38,4 +40,4 @@ build:
     expire_in: 2 days
   only:
     - master
-    - api31_pgg_restructure
+    - devel
diff --git a/setup.py b/setup.py
index cadb583894a5c8620adbd22da2f0e8fa7d31087d..eaf2f6338832c087adb94d7d8c535de1719b0c07 100644
--- a/setup.py
+++ b/setup.py
@@ -6,8 +6,8 @@ import os
 
 class APIGenBuild(build_py):
     def run(self):
-        build_versions = ['3.0', '3.1', '3.2']
-        default_version = '3.2'
+        build_versions = ['3.0', '3.1', '3.2', '4.0']
+        default_version = '4.0'
         environ = os.environ.copy()
         if not environ.get('NETDB_TOKEN', False):
             build_versions.remove('3.0')
@@ -24,9 +24,9 @@ class APIGenBuild(build_py):
 
 setup(
     name='netdb_client',
-    version='3.2',
+    version='4.0',
     author='Dr. Meta',
-    description='This is a meta package to install the automatically generated NET-API 3.0, 3.1 and 3.2 definitions.',
+    description='This is a meta package to install the automatically generated NET-API 3.0, 3.1, 3.2 and 4.0 definitions.',
     url='https://git.scc.kit.edu/scc-net/net-suite/netdb-client-lib',
     install_requires=['requests'],
     python_requires='>=3.7',