better handling of scrollback on load