add donut and line directives