added more intelligence to disaptch-jobs, so that they will allways be executed in order.