use childdata ptrs in child.c