added total_len field to NodeInternal