fix for loss of stdout/stderr streams