added auto-scroll as an option