more fixes for line printing/scrolling
merge