fixed conflicts move job submission to dedicated function