add some flexibility to use.scrollwindow argument