got line numbering more-or-less working