adding a timeout for slow machines