some fixes to scanviewer()