fixed some bugs in the preparation script, runs without error now
multiproc now work on mf, second tsss run also works