converted aug.c to use child.c functions for child IO