added child.spawn to implement