lineMode can be taked from template