fixed node['type'] == 2 to 'con'