fixed real-time process output to work correctly