change how base is implemented, fix window.scroll