debugged code, ready to scrape minutes