whitespace fixed and child process code revisited