repair child so output can be parsed by parent