write output from children