bring back the rest of thread.c child log init changes