add children_count, children_memory checks