rejiggering code to be more flexible about using menus in scrape script