added timeout for subprocess