slowly bring the changes back in

right now just the first part of child log init in thread.c