maybe fix races in matching childs