diff --git a/pb_utils/pb_submitter/.gitignore b/pb_utils/pb_submitter/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..6d5984422b4055f069478d08dc77eb1d5405b1de
--- /dev/null
+++ b/pb_utils/pb_submitter/.gitignore
@@ -0,0 +1,2 @@
+pb_submitter
+test_prog
diff --git a/pb_utils/pb_submitter/Makefile b/pb_utils/pb_submitter/Makefile
deleted file mode 100644
index 55503d9ce1a2506057a149867545ea2ac4ebb8ca..0000000000000000000000000000000000000000
--- a/pb_utils/pb_submitter/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-obj-m += pb_module.o
-
-all:
-	make -C $(PWD)/../../ M=$(PWD) modules
-
-clean:
-	make -C $(PWD)/../../ M=$(PWD) clean
diff --git a/pb_utils/pb_submitter/build.sh b/pb_utils/pb_submitter/build.sh
index 4b92faed1e929a87ba42d7e403e4d719ac51f7dc..518b471e4177f4121a15f9197a58204e01fe7a7c 100755
--- a/pb_utils/pb_submitter/build.sh
+++ b/pb_utils/pb_submitter/build.sh
@@ -1,14 +1,14 @@
 #!/bin/bash
 
-#make
-mkdir -p mnt
+if [ ! -d "/mnt/pb_utils/pb_submitter" ]; then
+    echo "are you running this in chroot or the build system?"
+    exit 1
+fi
 
+cd /mnt/pb_utils/pb_submitter
 gcc -static -o pb_submitter pb_submitter.c
 gcc -static -o test_prog test_prog.c
 
-sudo mount -o loop ../build/qemu-image.img ./mnt
-sudo cp pb_submitter test_prog example_run.sh example_plan ./mnt/root
+cp pb_submitter test_prog example_run.sh example_plan /root
 
-sudo umount ./mnt
-
-echo "All done. Run ./run_qemu.sh now"
+echo "All done. Run '/root/example_run.sh' within ./run_qemu.sh now"
diff --git a/pb_utils/pb_submitter/example_run.sh b/pb_utils/pb_submitter/example_run.sh
index 380e11c0c24858de8e0d4291996a4af11255e2d0..43de115acb584936c3078f8302fc265469b4f12d 100755
--- a/pb_utils/pb_submitter/example_run.sh
+++ b/pb_utils/pb_submitter/example_run.sh
@@ -1,3 +1,3 @@
 #!/bin/sh
-
+cd /root
 ./pb_submitter test_prog example_plan
diff --git a/pb_utils/pb_submitter/pb_submitter.c b/pb_utils/pb_submitter/pb_submitter.c
index 023146b98c0c307188e74592f2fe89aadbe892f6..bfa3d2815756710dcdb0470b463356354bad3491 100644
--- a/pb_utils/pb_submitter/pb_submitter.c
+++ b/pb_utils/pb_submitter/pb_submitter.c
@@ -71,7 +71,8 @@ int main(int argc, char** argv)
         return -1;
     }
 
-    for (size_t i = 0; i < plan.num_tasks; i++) {
+    size_t i;
+    for (i = 0; i < plan.num_tasks; i++) {
         cnt = getline(&line, &len, fp);
 
         if (cnt < 0) {
diff --git a/pb_utils/readme.md b/pb_utils/readme.md
index f7f06bf91c68da4c03b155e64214d652269f58f2..6372d259c9a6ba932609616f6f917f7080b0d57a 100644
--- a/pb_utils/readme.md
+++ b/pb_utils/readme.md
@@ -26,6 +26,12 @@ run `./chroot_image.sh`, this drops you in a shell on the created debian and run
 /mnt/pb_utils/mod_gen/build.sh
 ```
 
+## chroot into debian rootfs to build pb_submitter
+run `./chroot_image.sh`, this drops you in a shell on the created debian and run
+```bash
+/mnt/pb_utils/pb_submitter/build.sh
+```
+
 # run the build kernel with the created rootfs
 run `./run_qemu.sh`