added timeout for forked processes