moved merging over to parenting to allow child processes to run during a parent's critical section