extracted a method for spawning child processes and stalking them