fixed very weird cluster bug, maybe a race condition by introductin smaller and separate jobscripts for the sort step