better reading from child process