add a flag to switch between single process and mutilProcess.