added timeout for the child process