each edge can contain several contours
direct access to templates for debugging mode