refactoring sgf scraper