improve implementation of grLines
implement choice, unclear elements and cert attribute