subprocess output has priority over user input