refactoring submit job in native + misc
misc fixes: use _exit to avoid segfault while exiting child process. plus misc