add case for parent-child process control