fixed probably with multiprocessing opening too many files