fixes #9 for clustering, now random caracters a added to tmp file name