pass a child struct into init_child