fix spawning to support NOT discarding output