adapting submit script to put ordered output in Data dir