diff --git a/cmake_targets/build_oai b/cmake_targets/build_oai
index ea28a7131afca1e666ce6db35474c8e1c46f9344..7c438aabd8eda1bc2e50ae65837a1239f894e6c1 100755
--- a/cmake_targets/build_oai
+++ b/cmake_targets/build_oai
@@ -519,6 +519,12 @@ function main() {
     cd $DIR/nas_sim_tools/build
     
     cmake ..
+    compilations \
+      nas_sim_tools usim \
+      usim $dbin/usim
+    compilations \
+      nas_sim_tools nvram \
+      nvram $dbin/nvram
     compilations \
         nas_sim_tools conf2uedata \
         conf2uedata $dbin/conf2uedata
@@ -526,6 +532,10 @@ function main() {
     # generate USIM data
     if [ -f $dbin/conf2uedata ]; then
       install_nas_tools $conf_nvram_path $gen_nvram_path
+      echo_info "Copying UE specific part to $DIR/$lte_build_dir/build"
+      cp -Rvf $dbin/.ue_emm.nvram0 $DIR/$lte_build_dir/build
+      cp -Rvf $dbin/.ue.nvram0 $DIR/$lte_build_dir/build
+      cp -Rvf $dbin/.usim.nvram0 $DIR/$lte_build_dir/build
     else
       echo_warning "not generated UE NAS files: binaries not found"
     fi
@@ -641,6 +651,12 @@ function main() {
 	mkdir -p $DIR/nas_sim_tools/build
 	cd $DIR/nas_sim_tools/build
 	cmake ..
+	compilations \
+	    nas_sim_tools usim \
+	    usim $dbin/usim
+	compilations \
+	    nas_sim_tools nvram \
+	    nvram $dbin/nvram
 	compilations \
         nas_sim_tools conf2uedata \
         conf2uedata $dbin/conf2uedata
diff --git a/cmake_targets/tools/build_helper b/cmake_targets/tools/build_helper
index 5d4a1dbeae901e95233620047d7f217c04b88684..da3ef1c355892d35b2938a5659e77ae3b00ff5f6 100755
--- a/cmake_targets/tools/build_helper
+++ b/cmake_targets/tools/build_helper
@@ -450,13 +450,23 @@ install_asn1c_from_source(){
 ################################################
 
 install_nas_tools() {
-  if [ ! -f $2/.ue.nvram0 -o ! -f $2/.usim.nvram0 ]; then
-    cd $OPENAIR_DIR/targets/bin
-    ./conf2uedata -c $1 -o $2
-    echo_success "$1 $2"
+  if [ ! -f .ue.nvram0 ]; then
+    echo_success "generate .ue_emm.nvram .ue.nvram"
+    ./nvram --gen -c $1 -o $2
+  else
+    [ ./nvram -nt .ue.nvram0 -o ./nvram -nt .ue_emm.nvram0 ] && ./nvram --gen -c $1 -o $2
+  fi
+
+  if [ ! -f .usim.nvram0 ]; then
+    echo_success "generate .usim.nvram"
+    ./usim --gen -c $1 -o $2
+  else
+    [ ./usim -nt .usim.nvram0 ] && ./usim --gen -c $1 -o $2
   fi
+
 }
 
+
 ################################
 # set_openair_env
 ###############################