added support for stacked lines
tmp