shifting from multi-thread to multi-processes