handle log line numbering properly