added multiprocessing for directly writing diskfile