try to fix bug capturing process output